<template>
  <div class="h_title">
    <div class="h1">
      <p style="margin-top: 10px">
        <span>健康信息随访</span>
      </p>
    </div>
    <div class="data_1">
      <div class="ser">
        <p class="ser_title">
          <span>血压</span>
        </p>
        <p class="ser_data_3">
          <span>120/80mmHg</span>
        </p>
      </div>
      <div class="ser">
        <p class="ser_title">
          <span>空腹血压</span>
        </p>
        <p class="ser_data_3">
          <span>90mmol/L</span>
        </p>
      </div>
      <div class="ser">
        <p class="ser_title">
          <span>心率</span>
        </p>
        <p class="ser_data_3">
          <span>80bmp</span>
        </p>
      </div>
    </div>

    <div class="h3">
      <p>
        <span style="color: gray">病情描述</span>
        &nbsp;&nbsp;&nbsp;&nbsp;
        <span>病情稳定</span>
      </p>
    </div>
    <div class="h3" style="margin-top: 10px">
      <p>
        <span style="color: gray">健康指导</span>
        &nbsp;&nbsp;&nbsp;&nbsp;
        <span>继续保持健康心态</span>
      </p>
    </div>
  </div>
</template>

<script>
export default {
  props: ["residenceEntity"],
  data() {
    return {
      residenceEntity: {},
    };
  },
  methods: {
    
    getServiceInfo() {
      axios({
        url: "api/inhabitant/findInhabitantById",
        method: "get",
        params:{
          id:this.residenceEntity
        }
      }).then((res) => {
         this.residenceEntity = res.data;
        //  alert(this.residenceEntity+"asdsadas")
      });
     
    },
    
  },
  created () {
    this.getServiceInfo();
  }
 
  
};
</script>

<style>
.h_title {
  width: 890px;
  height: 150px;
  background-color: #f2f7fb;
}
.h1 {
  width: 890px;
  height: 20px;
  line-height: 20px;
  font-size: 16px;
}
.data_1 {
  width: 890px;
  height: 60px;
  line-height: 60px;
}
.ser_title {
  font-size: 16px;
  float: left;
  color: gray;
  width: 70px;
}
.ser {
  float: left;
}
.ser_data_3 {
  width: 200px;
  font-size: 16px;
  float: left;
  margin-left: 10px;
  margin-right: 10px;
}
.h3 {
  width: 890px;
  height: 30px;
  font-size: 16px;
}
</style>